package com.jiesen.base.modules.login.branch.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.jiesen.base.baseDao.BaseModel;
import com.jiesen.base.utils.PageDto;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

@Data
@NoArgsConstructor
@TableName("js_area_branch")
public class Branch extends BaseModel {

    @TableId(type = IdType.AUTO)
    private Integer id;         //分校大区表
    private String name;        //分校或大区名称
    private String address;     //地址
    private Integer parentId;   //所属大区（0代表大区）
    private Date create_time;   //创建时间

    @TableField(exist = false)
    private List<Branch> Branchs;
}
